{!capture name='main'!}
<h1>添加菜谱</h1>
<br/>
{!/capture!}
{!capture name='left'!}
{!if $step == 1!}
<form action="/recipe/add" method="post" onsubmit="return onSubmit(this)">
<input type="hidden" name="step" value="2"/>
	菜谱名称：<input type="text" name="recipeName" style="width:200px;"/><input type="submit" value="在厨房里搜索"/>
</form>
{!elseif $step == 2!}
你要添加的{!$recipe.name!}，在厨房里已经有了！<br/>
<a href="/recipe/{!$recipe.recipeId!}">点击查看</a><br/>
<input type="button" value="编辑这个菜谱" onclick="window.location='/recipe/{!$recipe.recipeId!}/edit'"/>
<input type="button" value="上传我做的{!$recipe.name!}" onclick="window.location='/recipe/{!$recipe.recipeId!}/upload'">
{!elseif $step == 3!}
{!include file="part/recipe_edit.tpl"!}
{!/if!}
{!/capture!}

{!include file='layouts/default.tpl'!}